﻿
namespace SurveySystem.Model
{
    /// <summary>
    /// Represents a single answer, part of a set of answers called a <see cref="Response"/>. Not to be 
    /// confused with the <see cref="Answer"/> class which represents a survey definition, not a response.
    /// </summary>
    public class ResponseAnswer
    {
        /// <summary>
        /// ID of the <see cref="Response"/> object to which this ResponseAnswer belongs
        /// </summary>
        public int ResponseID { get; set; }
        /// <summary>
        /// ID of the <see cref="Question"/> object to which this ResponseAnswer belongs
        /// </summary>
        public int QuestionID { get; set; }
        /// <summary>
        /// ID of the <see cref="Answer"/> object to which this ResponseAnswer belongs
        /// </summary>
        public int AnswerID { get; set; }
        /// <summary>
        /// Free-text allowing the survey user to enter comments, or allowing the survey creator to ask for 
        /// text answers in future releases
        /// </summary>
        public string Comment { get; set; }

        public ResponseAnswer()
        {
            ResponseID = -1;
            QuestionID = -1;
            AnswerID = -1;
            Comment = "";
        }
    }
}
